Repository navigation
Conversation
Pushes to master and release branches, and scheduled runs, got a write-all GITHUB_TOKEN because these workflows had no permissions block. Give each workflow a top-level block and widen it per job only where needed: - CI, CI jobs, Worker, Docker tests, Cron Job ITs: contents: read - changes (ci.yml) and the calling ci job: also pull-requests: read, for dorny/paths-filter to list a pull request's files through the API - actions-timeline: actions: read, to list the run's jobs - PR Commit Checks: pull-requests: read, for the PR title check - Stale bot: actions: write (state cache), issues: write, pull-requests: write
FrankChen021
left a comment
There was a problem hiding this comment.
🟢 Approval recommended
No actionable issues found. The seven changed workflows grant the token scopes required by their actions: checkout jobs use contents: read, paths-filter and the semantic PR check use pull-requests: read, the actions timeline uses actions: read, and the stale bot retains the write scopes required for its configured label, comment, close, and state-cache operations. The reusable-workflow call chain was traced to confirm that the caller passes pull-requests: read to the changes job while nested worker and Docker jobs remain read-only for repository contents.
Reviewed 7 of 7 changed files.
Validation: git diff --check 32384e0f5883987e5902d07aec25dc66450d7b1f 228083e9b5a96c85e778eadd7b1f58fc41c9439d passed. No build or test commands were run; this was a static review.
This is an automated review by Codex GPT-5.6 Luna(Max)
# Conflicts: # .github/workflows/ci.yml # .github/workflows/unit-and-integration-tests-unified.yml
FrankChen021
left a comment
There was a problem hiding this comment.
🟢 Approval recommended
No actionable issues found in this review. The seven changed workflow files grant the scopes required by their actions, including the reusable CI caller/called workflow chain, checkout, paths filtering, actions timeline, artifact handling, and stale bot operations.
Reviewed 7 of 7 changed files. This was a static review; no build or test commands were run.
This is an automated review by Codex GPT-5.6-Luna(max)
Description
Follow-up to #20878, from this discussion and this one.
This PR adds a few read-only
permissionsblock, so pushes tomasterand release branches and scheduled runs get a scoped token (instead ofwrite-all). Check this table for details:CI(ci.yml)quality-gatecontents: readquality-gateonly readsneedsCIci(callsci-jobs.yml)contents: read,pull-requests: readchangesneedsCIactions-timelineactions: readKesin11/actions-timelinereads the workflow run and lists its jobsCI jobs(ci-jobs.yml)contents: readCI jobschangescontents: read,pull-requests: readdorny/paths-filterlists a pull request's files through the API; push events use checkoutWorker(worker.yml)executecontents: readmikepenz/action-junit-reportruns withannotate_only: true,job_summary: falseand nocomment, so it creates no check run and makes no API call. Norun:step, including the JaCoCo coverage report, is given the tokenDocker Tests(docker-tests.yml)run-docker-testscontents: readupload-artifactonlyCron Job ITs(cron-job-its.yml)security_vulnerabilitiescontents: readPR Commit Checks(pr-checks.yml)conventional-commitspull-requests: readamannn/action-semantic-pull-requestreads the pull request through the API; no checkoutStale bot(stale.yml)staleactions: write,issues: write,pull-requests: writebackport.yml,codeql.yml,labeler.yml,labeler-signal.ymlandpr-merged.ymlalready declare their permissions and are unchanged.Both the caller and the called workflows declare a block, and a future job added to
ci-jobs.ymlorworker.ymlstarts read-only even if a new caller forgets to restrict it. See Reusing workflow configurations: permissions passed from the caller "can be only downgraded (not elevated) by the called workflow".This PR has: